package animationEngine;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * AnimatingStringSearch
 * Team.java
 * Purpose: Creates a form which displays the team members and the supervisor
 * 			of the project. It simply closes by clicking the ok button
 *
 * @author Andrei Palade
 * @author David McBrierty
 * @author Garry Sharp
 * @author Hristo Georgiev
 * @author John Dennis
 * @author Marco Sarconi
 * @version 1.0.1
 */
public class Team extends javax.swing.JFrame {

	/** Generated by Eclipse */
	private static final long serialVersionUID = 1L;
	
	/** Generated by NetBeans */
	private javax.swing.JButton jButton1;
	
	/** Generated by NetBeans */
	private javax.swing.JLabel jLabel1;
	
	/** Generated by NetBeans */
	private javax.swing.JSeparator jSeparator1;
	
	/** Creates new form Team */
	public Team() {
		initComponents();
	}


	/**
	 * Initialises the components of the form 
	 */
	void initComponents() {

		jButton1 = new javax.swing.JButton();
		jSeparator1 = new javax.swing.JSeparator();
		jLabel1 = new javax.swing.JLabel();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

		jButton1.setText("Ok");

		jLabel1.setText("<html><h align=\"center\">Supervisor: Gethin Norman<br><br><br>TEAM L<br><br>Andrei Palade<br>John Dennis<br>David McBrierty<br>Hristo Georgiev<br>Marco Sarconi<br>Garry Sharp</align></html>");

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(layout.createSequentialGroup()
						.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
								.addGroup(layout.createSequentialGroup()
										.addContainerGap()
										.addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE))
										.addGroup(layout.createSequentialGroup()
												.addGap(77, 77, 77)
												.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)))
												.addContainerGap())
												.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
														.addContainerGap(49, Short.MAX_VALUE)
														.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGap(41, 41, 41))
				);
		layout.setVerticalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
						.addGap(22, 22, 22)
						.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
						.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
						.addComponent(jButton1)
						.addGap(18, 18, 18))
				);
		
		/**
		 * Disposes of the frame when clicked
		 */
		jButton1.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {

				dispose();
			}
		});

		pack();
	}
}
